home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000150_icon-group-sender _Thu Sep 7 13:22:42 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  797b

  1. Received: by cheltenham.cs.arizona.edu; Thu, 7 Sep 1995 16:22:33 MST
  2. Date: Thu, 7 Sep 1995 13:22:42 -0700
  3. From: Gregg Townsend <gmt>
  4. Message-Id: <9509072022.AA17488@hawk.CS.Arizona.EDU>
  5. To: Steve_Graham@vos.stratus.com, icon-group@cs.arizona.edu
  6. Subject: Re:  Output files in Icon
  7. Errors-To: icon-group-errors@cs.arizona.edu
  8.  
  9.     From: Steve_Graham@vos.stratus.com
  10.     How does one specify the file/device to which you are trying to output?
  11.  
  12. Just pass the file value as an argument to write().  For example:
  13.  
  14.     outfile := open(filename, "w") | stop("can't open ", filename)
  15.     write(outfile, "Here comes the output....")
  16.  
  17.     Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
  18.     +1 520 621 4325     gmt@CS.Arizona.EDU     110 57 16 W / 32 13 45 N / +758m
  19.